<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Partner/index')}">合伙人申请列表</a></li>
			<li class="active"><a href="#">详情</a></li>
		</ul>
		<form method="post" class="form-horizontal margin-top-20">
			<div class="form-group">
				<label for="input-user_login" class="col-sm-2 control-label">代理人名称</label>
				<div class="col-md-2 col-sm-10">
					<span class="form-control" >{$detail.user_name}</span>
				</div>	
				<label for="input-user_login" class="col-sm-2 control-label">代理人手机号</label>
				<div class="col-md-2 col-sm-10">
					<span class="form-control" >{$detail.mobile}</span>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_pass" class="col-sm-2 control-label">代理人城市</label>
				<div class="col-md-2 col-sm-10">
					<span class="form-control" >{$detail.address}</span>
				</div>
				<label for="input-user_pass" class="col-sm-2 control-label">代理等级</label>
				<div class="col-md-2 col-sm-10">
					<span class="form-control">{$detail.apply_level}</span>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label">销售数量</label>
				<div class="col-md-2 col-sm-10">
					<span class="form-control" >{$detail.volume}</span>
				</div>
			</div>			
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label">近一年销售量</label>
				<div class="col-md-2 col-sm-10">
					<span class="form-control" ><?php  echo $detail['oneself_volume']+$detail['first_volume']+$detail['second_volume'] ; ?></span>
				</div>
			</div>			
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label">代理状态</label>
				<div class="col-md-2 col-sm-10">
					<span class="form-control" >
						<switch detail.status>
							<case 1>申请中</case>
							<case 2>已通过</case>
							<case 3>已拒绝</case>
							<case 4>已撤销</case>
						</switch>
					</span>
				</div>
			</div>
			<if condition="$detail.status eq 1">

				<div class="form-group">
					<label for="input-user_email" class="col-sm-2 control-label">操作</label>
					<div class="col-md-2 col-sm-10">
						<a class="btn btn-xs btn-primary  js-ajax-dialog-btn" href="{:url('Partner/adoptStatus',array('pn_id'=>$detail['pn_id']))}" data-msg="确认要通过吗？">通过</a>	
						<a class="btn btn-xs btn-primary  js-ajax-dialog-btn" href="{:url('Partner/refuseStatus',array('pn_id'=>$detail['pn_id']))}"  data-msg="确认要拒绝吗？">拒绝</a>
					</div>
				</div>
			</if>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>